//
//  Data.h
//  dingding
//
//  Created by chensentao on 15/12/2.
//  Copyright © 2015年 dingding. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>

typedef void(^HttpCallback)(NSURLResponse *response, NSData *data, NSError *connectionError);

@interface HttpHelper: NSObject

-(void)getSync:(NSString*)url prams:(NSDictionary*)dict func:(HttpCallback)funcs;
-(void)get:(NSString*)url prams:(NSDictionary*)dict func:(HttpCallback)funcs;
-(void)post:(NSString*)url prams:(NSDictionary*)dict func:(HttpCallback)funcs;
-(void)postXml:(NSString*)url prams:(NSString*)xml func:(HttpCallback)funcs;
-(bool)isNetworkConnect;

@end
